package org.ttjhome.html.struts.common;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.ttjhome.db.dbo.Tag;



public class CandidateCriteria implements Serializable{

	private Date birthdayFrom;
	
	private Date birthdayTo;
	
	private Date graduateDateFrom;
	
	private Date graduateDateTo;
	
	private String id;
	
	private String industry ;
	
	private Set<Tag> tags;
	
	private String name;
	
	private String gender;

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public static enum SortOrder {
		ASC, DESC
	}
	

	public Date getBirthdayFrom() {
		return birthdayFrom;
	}

	public void setBirthdayFrom(Date birthdayFrom) {
		this.birthdayFrom = birthdayFrom;
	}

	public Date getBirthdayTo() {
		return birthdayTo;
	}

	public void setBirthdayTo(Date birthdayTo) {
		this.birthdayTo = birthdayTo;
	}

	public Date getGraduateDateFrom() {
		return graduateDateFrom;
	}

	public void setGraduateDateFrom(Date graduateDateFrom) {
		this.graduateDateFrom = graduateDateFrom;
	}

	public Date getGraduateDateTo() {
		return graduateDateTo;
	}

	public void setGraduateDateTo(Date graduateDateTo) {
		this.graduateDateTo = graduateDateTo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public Set<Tag> getTags() {
		if(tags==null){
			tags = new HashSet<Tag>();
		}
		return tags;
	}

	public void setTags(Set<Tag> tags) {
		this.tags = tags;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
